package signGrammar.util;

import java.util.Map;

import signGrammar.IShape;


public class CShapeEvaluator {
	private Map<String,IBinaryShapeExpression> binaryExpressions = UShapeExpression.getExpressions();
	private Map<String,IUnaryShapeExpression> unaryExpressions = UShapeExpression.getUnaryExpressions();

	public IShape eval(IShape a, String binaryExpressionSign, IShape b){
		return binaryExpressions.get(binaryExpressionSign).eval(a, b);
	}
	public IShape eval(String unaryExpressionSign, IShape a){
		return unaryExpressions.get(unaryExpressionSign).eval(a);
	}
}
